<template>
    <div class="foot">
        <span>总战斗力为:{{ list.LIST.reduce((pre,item)=>pre+item.fightnumber,0) }}</span>
        <input type="button" value="clean" @click="del">

    </div>
</template>
<script setup>
    import {ref} from 'vue'
    let list=defineProps(["LIST"])
    let emit=defineEmits()
    let del=()=>{
        emit("DDD")
    }
</script>

<style scoped>
    .foot{
        display: flex;
        margin-top: 10px;
        justify-content: space-around;
    }
</style>